package com.yanqu.road.server.cmd.activity.jiuzhou.cross;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.jiuzhou.JiuZhouProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.jiuzhou.JiuZhouModule;
import com.yanqu.road.server.protocol.GameProtocol;

@Cmd(code = GameProtocol.S_JIU_ZHOU_GUESS_RESULT_FROM_CROSS,desc = "九州棋局跨服竞猜返回")
public class JiuZhouGuessResultFromCross extends AbstractCommand {

    JiuZhouProto.JiuZhouGuessRespMsg respMsg;

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        respMsg = JiuZhouProto.JiuZhouGuessRespMsg.parseFrom(packet.getBytes());
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.getModule(JiuZhouModule.class).guessResult(respMsg);
    }

    @Override
    public void sendData(GamePlayer player) {

    }
}
